#!/usr/bin/env sh

set -o xtrace

export TRUST_PARAMS=1
#export FULLNODE_API_INFOS="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJyZWFkIiwid3JpdGUiLCJzaWduIiwiYWRtaW4iXX0.-euyZ7_7ghRM22TER8K0zWwsTVvb0hy_dtHu-I7h3u8:/ip4/127.0.0.1/tcp/1234/http eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJyZWFkIiwid3JpdGUiLCJzaWduIiwiYWRtaW4iXX0.-euyZ7_7ghRM22TER8K0zWwsTVvb0hy_dtHu-I7h3u8:/ip4/127.0.0.1/tcp/1235/http eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJyZWFkIiwid3JpdGUiLCJzaWduIiwiYWRtaW4iXX0.iAdHumLZA4d3O66MIr5dJbERKo5Jy5WPpihDR9efXzY:/ip4/127.0.0.1/tcp/1234/http eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJyZWFkIiwid3JpdGUiLCJzaWduIiwiYWRtaW4iXX0.LZ-coz5z-hIZcQubpu0NE4CkqsE5SqgR8cJTEHHzR5A:/ip4/127.0.0.1/tcp/1234/http"
export ENABLE_WIN_POST=true
export ENABLE_WINDOWS_POST=true
tag=${TAG:-debug}

go run -tags=$tag ./cmd/lotus wallet import ~/.genesis-sectors/pre-seal-t01000.key
go run -tags=$tag ./cmd/lotus-storage-miner init --actor=t01000 --genesis-miner --pre-sealed-sectors=~/.genesis-sectors --pre-sealed-metadata=~/.genesis-sectors/pre-seal-t01000.json
